package chaos.infinity.mixin.Gunpowder;

import net.minecraft.block.Block;
import net.minecraft.item.BlockItem;
import net.minecraft.item.Item;
import net.minecraft.item.Items;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

import java.util.function.Function;

@Mixin(Items.class)
public class PlaceGunpowder_Mixin {
//    @Shadow
//    public static Item GUNPOWDER;
//    @Shadow
//    public static Item register(String id, Function<Item.Settings, Item> factory, Item.Settings settings) {
//        return null;
//    }
//    @Shadow
//    private static Function<Item.Settings, Item> createBlockItemWithUniqueName(Block block) {
//        return (settings) -> {
//            return new BlockItem(block, settings.useItemPrefixedTranslationKey());
//        };
//    }
//    @Inject(method = "<clinit>", at = @At("TAIL"))
//    private static void clinit(CallbackInfo info) {
//        Block GUNPOWDER_WIRE = (new GunpowderWireBlock_Mixin()).getGunpowderWire();
//        GUNPOWDER = register("gunpowder", createBlockItemWithUniqueName(GUNPOWDER_WIRE), (new Item.Settings()));
//    }
}
